// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Vuex from 'vuex'

import echarts from 'echarts'
import { fetchGet, fetchPost,fetchDelete} from './untils/axiosConfig'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './icons' // 引入svg

// import 'lib-flexible'
// 引入字体图标
import './assets/iconfont/iconfont.css'
// 全局配置请求方式
Vue.prototype.$get = fetchGet;
Vue.prototype.$post = fetchPost;
Vue.prototype.$delete = fetchDelete;

Vue.prototype.$echarts = echarts;
Vue.config.productionTip = false;
// Vue.use(VideoPlayer)
Vue.use(Vuex);
Vue.use(ElementUI);
let store = new Vuex.Store({
  state:{
    xyq:'杨果',
    age:''
  },
  mutations:{
    whatsAge(state,age){
      state.age = age;
    }
  }
})
/* eslint-disable no-new */

new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
